<%@ page language="java" pageEncoding="utf-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>我的购物车</title>
</head>
<body background="images/2.jpg">
<h2>我的购物车</h2>
<hr>
<table border="1" width="700">
    <tr bgcolor="#dddddd">
        <td align="center" width="80">名称</td>
        <td align="center">单价(元/斤)</td>
        <td align="center" width="100">数量</td>
        <td align="center" width="100">总价(元)</td>
        <td align="center" width="100">移除(-1/次)</td>
        <td align="center" width="100">移除(种类)</td>
    </tr>
    <c:forEach items="${list}" var="goods">
        <form action="delete.do">
            <tr align="center">
                <td>${goods.name}</td>
                <td>${goods.price}</td>
                <td>${goods.num}</td>
                <td>${goods.total}</td>

                <input type="hidden" name="name" value="${goods.name}"/>
                <td>
                    <input type="submit" value="-">
                        <%--<a href="delete.do?name=${goods.name}">删除</a>--%>
                </td>
                <td>
                    <a href="deleteOneLine.do?name=${goods.name}">移除</a>
                </td>
        </form>
        </tr>
    </c:forEach>
</table>
</div>
<div align="center" style="color:red; font-size: 20px;">总价:${total}元</div>
</body>
<br>

<div align="center">
    <a href="list.do">继续购物</a>
    <a href="deleteAll.do">清空购物车</a>

</html>